const initObject = (obj) => {
  Object.keys(obj).forEach(key => {
    if (!obj[key]) {
      delete obj[key]
    }
    if (typeof (obj[key]) === 'object') {
      obj[key] = JSON.stringify(obj[key])
    }
  })
  return obj
}

module.exports = {
  initObject
}